<template>
    <div>
        <img src="../assets/img/no_limited.png" alt="">
        <div class="text">您暂无管理该用户的权限 <br /> 请联系管理获得权限</div>
    </div>
</template>

<script>
export default {
    name: "limited",
    data() {
        return {};
    },
    methods: {
        getUserInfo() {
            let params = {
                wx_member_id: localStorage.getItem('wx_member_id'),
                token: localStorage.getItem('token'),
            };
            this.$post("/api/common/index", params)
                .then(res => {
                    if (res.code == 1) {
                        this.$router.replace('/')
                    }
                })
                .catch(err => { });
        },
    },
    created() {
        // 实例创建完成
        this.getUserInfo();
    },
    beforeCreate() {
        document.querySelector("body").setAttribute("style", "background-color:#fff");
    }
}
</script>

<style scoped lang='less'>
img {
    width: 70vw;
    margin-left: 15vw;
    margin-top: 130px;
    object-fit: cover;
}

.text {
    width: 200px;
    font-size: 15px;
    color: #999999;
    margin: 0 auto;
    margin-top: 25px;
    text-align: center;
}
</style>